package oop3.pet;

public class Crocodile extends Pet {
	private String type;

	public Crocodile(String name, int health, int love, String type) {
		super(name, health, love);
		this.type = type;
	}

	@Override
	public void show() {
		System.out.println("这是一只鳄鱼，" + type);
		super.show();
	}

	public void swim() {
		System.out.println(getName() + "正在水池中游泳！");
	}

	@Override
	public final void cry() {
		System.out.println("轰隆隆");
	}
}
